import request from '@/utils/request'

function formatRequestUri(name) {
  return 'hr/EmpFile/' + name
}
export function Gets(classtify) {
  return request({
    url: formatRequestUri('Gets'),
    method: 'get',
    params: {
      classtify
    }
  })
}
export function Add(data) {
  return request({
    url: formatRequestUri('Add'),
    method: 'post',
    data
  })
}
export function Delete(id) {
  return request({
    url: formatRequestUri('Delete'),
    method: 'get',
    params: {
      id
    }
  })
}

export function FindLast(classtify) {
  return request({
    url: formatRequestUri('FindLast'),
    method: 'post',
    params: {
      classtify
    }
  })
}
